package com.core.Design.factoryMethod;

/**
 * Created by admin on 2017/6/6.
 */
public abstract  class Operator<T extends Number>  {
    abstract void calculate();

    Operator(){

    }
    Operator(Double number,Double number1){
        this.number = number;
        this.number1 = number1;
    }

    private Double number;
    private Double number1;

    public Double getNumber() {
        return number;
    }

    public void setNumber(Double number) {
        this.number = number;
    }

    public Double getNumber1() {
        return number1;
    }

    public void setNumber1(Double number1) {
        this.number1 = number1;
    }
}
